package com.ruoyi.zhjd.laboratory.modules.laboratoryductility.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @ClassName: ExpDuctilityEntity
 * @Description: 延度
 * @author linhuawei
 * @since 2021-04-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ToString
@TableName("n_laboratory_ductility")
public class LaboratoryDuctilityEntity {

    @TableId(type = IdType.ASSIGN_UUID)
    private String id;// 主键
    private String baseCode;// 基地编号
    private String deviceCode;// 设备编号
    private String projectName;// 工程名称
    private String constructionSite;// 施工部位

    private String sampleName;// 样品名称
    private String sampleNo;// 样品编号

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;// 开始时间

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;// 结束时间

    private BigDecimal value1;// 延度值1
    private BigDecimal value2;// 延度值2
    private BigDecimal value3;// 延度值3
    private BigDecimal average;// 平均延度
    private BigDecimal temperature;// 实验温度

    private BigDecimal minValue;// 技术要求最小值
    private BigDecimal standardTemp;// 技术要求温度
    private String isQualified;// 合格0或者不合格1

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NEVER)
    private Date insertTime;// 入库时间

}
